<?php

class StoreOrderUpdateForm extends sfForm
{
  private $items;
  
  public function __construct($defaults = array(), $options = array(), $ids = array())
  {
    $this->items = $ids;
    parent::__construct($defaults, $options);
  }
  
  public function configure()
  {
    $this->setWidget('items_list_values', new sfWidgetFormInput(array(), array('size' => '5')));
    $this->useFields(array('items_list_values'));
    
    foreach($this->items as $item)
    {
      $this->getWidget('items_list_values')
              ->setAttribute('id', $item);
    }
  }
}